package com.woniuxy.controller;

import com.woniuxy.entity.Perm;
import com.woniuxy.service.PermService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Perm)表控制层
 *
 * @author makejava
 * @since 2021-05-15 14:52:38
 */
@RestController
@RequestMapping("perm")
public class PermController {
    /**
     * 服务对象
     */
    @Resource
    private PermService permService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Perm selectOne(Integer id) {
        return this.permService.queryById(id);
    }

}
